package rest.entities;

import java.io.Serializable;

import javax.jdo.annotations.IdGeneratorStrategy;
import javax.jdo.annotations.PersistenceCapable;
import javax.jdo.annotations.Persistent;
import javax.jdo.annotations.PrimaryKey;
import javax.xml.bind.annotation.XmlRootElement;

import com.google.appengine.api.datastore.Key;

@XmlRootElement
@PersistenceCapable
public class FeedBack implements Serializable, JDOEntity{

	@PrimaryKey
	@Persistent(valueStrategy = IdGeneratorStrategy.IDENTITY)
	private Key key;
	
	@Persistent
	private User user;
	
	@Persistent
	private String remarks;

	private Integer interfaceGrade;
	@Persistent
	private Integer usabilityGrade;
	@Persistent
	private Integer navigationGrade;

	public FeedBack() {
	}


	public FeedBack(Key key, User user, String remarks,
			Integer interfaceGrade, Integer usabilityGrade,
			Integer navigationGrade) {
		super();
		this.key = key;
		this.user = user;
		this.remarks=remarks;
		this.interfaceGrade = interfaceGrade;
		this.usabilityGrade = usabilityGrade;
		this.navigationGrade = navigationGrade;
	}


	public User getUser() {
		return user;
	}


	public void setUser(User user) {
		this.user = user;
	}


	public Key getKey() {
		return key;
	}

	public void setKey(Key key) {
		this.key = key;
	}

	
	public String getRemarks() {
		return remarks;
	}


	public void setRemarks(String remarks) {
		this.remarks = remarks;
	}


	public Integer getInterfaceGrade() {
		return interfaceGrade;
	}

	public void setInterfaceGrade(Integer interfaceGrade) {
		this.interfaceGrade = interfaceGrade;
	}

	public Integer getUsabilityGrade() {
		return usabilityGrade;
	}

	public void setUsabilityGrade(Integer usabilityGrade) {
		this.usabilityGrade = usabilityGrade;
	}

	public Integer getNavigationGrade() {
		return navigationGrade;
	}

	public void setNavigationGrade(Integer navigationGrade) {
		this.navigationGrade = navigationGrade;
	}

}
